import _http from '@/utils/http'

export default {
    channelList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/list',
            apiName: '上游平台',
        }, params, loading, headers)
    },
    goodsCategoryListSimple(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsCategory/list/simple',
            apiName: '商品分类下拉-前置条件:商品类型id',
        }, params, loading, headers)
    },
    goodsTypeListSimple(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsType/list/simple',
            apiName: '商品类型下拉',
        }, params, loading, headers)
    },
    goodsBrandSimple(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsBrand/list/simple',
            apiName: '品牌分类下拉-前置条件:商品分类id',
        }, params, loading, headers)
    },
    productList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/product/list',
            apiName: '上游产品列表查询',
        }, params, loading, headers)
    },
    goodsInfoList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsInfo/list/simple',
            apiName: '商品下拉-前置条件:商品品牌id',
        }, params, loading, headers)
    },
    productAdd(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/product/add',
            apiName: '上游产品新增',
        }, params, loading, headers)
    },
    productModify(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/product/modify',
            apiName: '上游产品修改',
        }, params, loading, headers)
    },
    productRemove(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/product/remove',
            apiName: '上游产品删除',
        }, params, loading, headers)
    },
    productDown(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/product/down',
            apiName: '上游产品下载',
        }, params, loading, headers)
    },
    channelBalance(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/balance',
            apiName: '上游余额',
        }, params, loading, headers)
    },
    channelRecharge(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/recharge',
            apiName: '上游平台充值',
        }, params, loading, headers)
    },
    channelRechargeFlow(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/recharge/flow',
            apiName: '上游平台充值记录',
        }, params, loading, headers)
    },
    importTmplete(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/product/import/tmplete',
            apiName: '上游产品批量新增模板',
        }, params, loading, headers)
    },
    channelfeeflow(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/fee/flow',
            apiName: '上游平台账户记录列表',
        }, params, loading, headers)
    },
    channelfeeflowdown(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/fee/flow/down',
            apiName: '上游平台账户记录下载',
        }, params, loading, headers)
    },
    productModifyRecord(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/product/modify/record',
            apiName: '上游平台商品更新记录',
        }, params, loading, headers)
    },
}
